home *** CD-ROM | disk | FTP | other *** search
- function top2()
- {
- for(var _loc3_ in _root.jewelry_win.jewelry_btn)
- {
- if(typeof _root.jewelry_win.jewelry_btn[_loc3_] == "movieclip")
- {
- if(_root.jewelry_win.jewelry_btn[_loc3_]._name.substr(0,7) == "jewelry")
- {
- _root.jewelry_win.jewelry_btn[_loc3_].onRelease = function()
- {
- _root.mianban._visible = false;
- var num = Number(this._name.substr(7,2));
- if(_root.model_mc.model_earbob_mc._currentframe == num + 1)
- {
- _root.model_mc.model_earbob_mc.gotoAndStop(1);
- }
- else
- {
- Mouse.hide();
- if(num <= 5)
- {
- trace(num);
- this._visible = false;
- _root.cur3_mc.gotoAndStop(num + 1);
- this.onMouseDown = function()
- {
- sound_ini3();
- _root.model_mc.model_earbob_mc.gotoAndStop(num + 1);
- _root.cur3_mc.gotoAndStop(1);
- Mouse.show();
- this._visible = true;
- delete this.onMouseDown;
- };
- }
- }
- if(_root.model_mc.model_jewelry_mc._currentframe == num - 4)
- {
- _root.model_mc.model_jewelry_mc.gotoAndStop(1);
- Mouse.show();
- }
- else if(num > 5 && num <= 10)
- {
- trace(this._name);
- this._visible = false;
- _root.cur3_mc.gotoAndStop(num + 1);
- this.onMouseDown = function()
- {
- sound_ini3();
- _root.model_mc.model_jewelry_mc.gotoAndStop(num - 4);
- _root.cur3_mc.gotoAndStop(1);
- Mouse.show();
- trace(this._name);
- this._visible = true;
- delete this.onMouseDown;
- };
- }
- };
- }
- }
- }
- for(_loc3_ in _root.eye_win.eye_btn)
- {
- trace(_root.eye_win.eye_btn[_loc3_]);
- if(typeof _root.eye_win.eye_btn[_loc3_] == "movieclip")
- {
- if(_root.eye_win.eye_btn[_loc3_]._name.substr(0,3) == "eye")
- {
- _root.eye_win.eye_btn[_loc3_].onRelease = function()
- {
- _root.mianban._visible = false;
- var num = Number(this._name.substr(3,2));
- trace(num);
- Mouse.hide();
- this._visible = false;
- _root.cur5_mc.gotoAndStop(num + 1);
- this.onMouseDown = function()
- {
- sound_ini3();
- _root.model_mc.eye_mc.gotoAndStop(num + 1);
- _root.cur5_mc.gotoAndStop(1);
- Mouse.show();
- this._visible = true;
- delete this.onMouseDown;
- };
- };
- }
- }
- }
- for(_loc3_ in _root.hair_win.hair_btn)
- {
- trace(_root.hair_win.hair_btn[_loc3_]);
- if(typeof _root.hair_win.hair_btn[_loc3_] == "movieclip")
- {
- if(_root.hair_win.hair_btn[_loc3_]._name.substr(0,4) == "hair")
- {
- _root.hair_win.hair_btn[_loc3_].onRelease = function()
- {
- _root.mianban._visible = false;
- sound_ini4();
- var _loc3_ = Number(this._name.substr(4,2));
- _root.fair_movie.n = _loc3_;
- _root.fair_movie.gotoAndPlay(2);
- };
- }
- }
- }
- for(_loc3_ in _root.tools_win)
- {
- trace(_root.tools_win[_loc3_]);
- if(typeof _root.tools_win[_loc3_] == "movieclip")
- {
- if(_root.tools_win[_loc3_]._name.substr(0,5) == "tools")
- {
- _root.tools_win[_loc3_].onRelease = function()
- {
- var _loc3_ = Number(this._name.substr(5,2));
- _root.mianban._visible = true;
- _root.mianban.gotoAndStop(_loc3_ + 1);
- };
- }
- }
- }
- }
- function girl2()
- {
- this.model_mc._x = this.model_mc.x0 - 250;
- this.model_mc._y = this.model_mc.y0 + 70;
- this.model_mc._xscale = this.model_mc._yscale = 350;
- this.model_mc._rotation = 0;
- }
- function sound_ini3()
- {
- _root.bg3_sound = new Sound();
- _root.bg3_sound.attachSound("s3");
- _root.bg3_sound.start();
- _root.bg3_sound.setVolume(100);
- }
- function sound_ini4()
- {
- _root.bg4_sound = new Sound();
- _root.bg4_sound.attachSound("s4");
- _root.bg4_sound.start();
- _root.bg4_sound.setVolume(100);
- }
- function sound_ini()
- {
- stopAllSounds();
- _root.bg2_sound = new Sound();
- _root.bg2_sound.attachSound("s1");
- _root.bg2_sound.start(0,999);
- _root.bg2_sound.setVolume(100);
- }
- stop();
- this.onEnterFrame = function()
- {
- var _loc2_ = 1;
- while(_loc2_ <= 6)
- {
- _root["cur" + _loc2_ + "_mc"]._x = _xmouse;
- _root["cur" + _loc2_ + "_mc"]._y = _ymouse;
- _loc2_ = _loc2_ + 1;
- }
- };
- top2();
- girl2();
- sound_ini();
-